import { IAddress } from './../typeings/address';
import { IndexState } from './../typeings/index';
import {IHomeState} from './../typeings/home'
import {IUserState} from './../typeings/user'
import {createStore} from 'vuex';
import home from './modules/home';
import user from './modules/user';
import index from './modules/index'
import address from './modules/address'

export interface IGlobalState{
	index:IndexState,
	home:IHomeState,
	user:IUserState
	address:IAddress
}

const store = createStore<IGlobalState>({
	modules: {
		home,index,user,address
	}
})
export default store;